
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="roleCode"><@label key="roleCode.C,colon">角色编码：</@label></label> <input type="text" name="roleCode" value="${condition.roleCode!''}" /></li>
                <li>
                    <label><@label key="lockFlag.C,colon">锁定标记：</@label></label> 
                    <select name="lockFlag">
                            <option value=""><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                            <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                    </select>
                </li>
            </ul>
            <ul class="searchContent">
            <li><label id="roleText"><@label key="roleText.C,colon">角色描述：</@label></label> <input type="text" name="roleText" value="${condition.roleText!''}" /></li>

                
                <li>
                <label><@label key="systemFlag.C,colon">系统内置：</@label></label> <select name="systemFlag">
                        <option value=""><@label key="all.C">所有</@label></option>
                        <option value="0"<#if condition.systemFlag?? && condition.systemFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                        <option value="1"<#if condition.systemFlag?? && condition.systemFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                </select>
                </li>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>

            </ul>
        </div>
    </div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="role_add" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="652" height="440" href="${rc.getContextPath()}/role/addRole?navTabId=${navTabId!''}" rel="addUser" title="<@label key="addRole.C">新增角色</@label>"><span><@label key="add.B">新增</@label></span>
            </a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="role_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="652" height="510" href="${rc.getContextPath()}/role/editRole?id={role_code}&navTabId=${navTabId!''}" rel="modifyUser" title="<@label key="editRole.C">编辑角色</@label>"><span><@label key="edit.B">编辑</@label></span>
            </a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="ROLE_AUTHORIZE" labelKey="authorize.B" defalutName="授权">
            <li><a class="edit" target="dialog" mask="true" width="652" height="510" href="${rc.getContextPath()}/role/authorizeRole?id={role_code}&navTabId=${navTabId!''}" rel="modifyUser" title="<@label key="role.C,authorize.B">角色授权</@label>"><span><@label key="authorize.B">授权</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="role_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="652" height="510" href="${rc.getContextPath()}/role/viewRole?id={role_code}&navTabId=${navTabId!''}" rel="viewUser" title="<@label key="viewRole.C">角色详情</@label>"><span><@label key="view.B">详情</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="role_del" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" callback="batchjobAjaxDone" postType="string" rel="ids" href="${rc.getContextPath()}/role/deleteRole?navTabId=${navTabId!''}" title="<@label key="confirmDelRole.M">确认要删除勾选的角色数据吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="role_businessType" labelKey="editAuthority.B" defalutName="编辑权限">
            <li><a class="edit" target="dialog" mask="true" width="670" height="420" href="${rc.getContextPath()}/workflowBusiness/editBusinessType?id={role_code}&navTabId=${navTabId!''}" rel="addUser" title="<@label key="editAuthority.B">编辑权限</@label>"><span><@label key="editAuthority.B">编辑权限</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="163">
        <thead>
            <tr>
                <th width="21" class="center"><input type="checkbox" group="ids" class="checkboxCtrl">
                </th>
                <th width="100" orderField="roleCode"<#if (page.orderField?? && page.orderField == 'roleCode')>class="${page.orderDirection!''}"</#if>><@label key="roleCode.C">角色编码</@label></th>
                <th width="100" orderField="roleText"<#if (page.orderField?? && page.orderField == 'roleText')>class="${page.orderDirection!''}"</#if>><@label key="roleText.C">角色描述</@label></th>
                <th width="50" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key="lockFlag.C">锁定标记</@label></th>
                <th width="50" orderField="systemFlag"<#if (page.orderField?? && page.orderField == 'systemFlag')>class="${page.orderDirection!''}"</#if>><@label key="systemFlag.C">系统内置</@label></th>
                <th width="60" orderField="createUser"<#if (page.orderField?? && page.orderField == 'createUser')>class="${page.orderDirection!''}"</#if>><@label key="createUser.C">创建人</@label></th>
                <th width="120" orderField="createDateTime"<#if (page.orderField?? && page.orderField == 'createDateTime')>class="${page.orderDirection!''}"</#if>><@label key="createDateTime.C">创建时间</@label></th>
                <th width="60" orderField="modifyUser"<#if (page.orderField?? && page.orderField == 'modifyUser')>class="${page.orderDirection!''}"</#if>><@label key="modifyUser.C">修改人</@label></th>
                <th width="120" orderField="modifyDateTime"<#if (page.orderField?? && page.orderField == 'modifyDateTime')>class="${page.orderDirection!''}"</#if>><@label key="modifyDateTime.C">修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as role>
            <tr target="role_code" rel="${role.roleCode!''}">
                <td class="center"><input name="ids" value="${role.roleCode!''}" type="checkbox">
                </td>
                <td>${role.roleCode!''}</td>
                <td>${role.roleText!''}</td>
                <td><#if role.lockFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td><#if role.systemFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td>${role.createUser!''}</td>
                <td>${role.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td>${role.modifyUser!''}</td>
                <td>${role.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>

            </tr>
            </#list> <#else>
            <tr target="role_id">
                    <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if> <#else>
            <tr target="role_id">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>